Skip to content

feat(calendars): add hot releases endpoint contract#848

Merged
vladjerca merged 1 commit into
masterfrom
feat/hot_releases_calendar
Jul 13, 2026
Merged

feat(calendars): add hot releases endpoint contract#848
vladjerca merged 1 commit into
masterfrom
feat/hot_releases_calendar

Conversation

@vladjerca

Copy link
Copy Markdown
Contributor

What

Adds the contract for a new global calendar endpoint:

GET /calendars/releases/hot/:start_date/:days   (?type=movie|show)

Returns a single merged feed of upcoming movies and episodes in the window that are trending or highly anticipated, ordered by availability date. type narrows to one media type; omitted returns both. The response is a union of the existing movie and episode calendar entries (hotReleaseResponseSchema), so consumers discriminate by shape (movie vs episode/show).

No target path param: this is the global feed only, so the shared calendar params schema is reused via .omit({ target: true }).

Why

Backs the "hot releases" surface, which today is assembled client-side from a releases-calendar fetch plus separate trending/anticipated fetches and an in-browser intersect. The worker now serves that server-side (trakt/trakt-workers#1181); this contract exposes it typed.

Version

Bumps @trakt/api to 0.4.22.

Notes

The 5 pre-existing sync/HistoryRequest.test.ts type-check failures are unrelated to this change (untouched here).

Adds the `/calendars/releases/hot/:start_date/:days` contract: a global-only
merged feed of upcoming movies and episodes that are trending or highly
anticipated, ordered by availability date. Optional `type` query narrows to a
single media type; the response is a union of the movie and episode calendar
entries. Bumps the package to 0.4.22.
@vladjerca vladjerca force-pushed the feat/hot_releases_calendar branch from b975177 to 6414218 Compare July 13, 2026 18:17
@vladjerca vladjerca requested a review from seferturan July 13, 2026 18:38
@vladjerca vladjerca merged commit b8d9c80 into master Jul 13, 2026
3 checks passed
@vladjerca vladjerca deleted the feat/hot_releases_calendar branch July 13, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant